package com.jeeplus.mob.mapper;

import com.jeeplus.mob.entity.mobpojo.CardrecordInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface CardrecordInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(CardrecordInfo record);

    int insertSelective(CardrecordInfo record);

    CardrecordInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(CardrecordInfo record);

    int updateByPrimaryKey(CardrecordInfo record);

    //    List<Map<String, Object>> getPunchDataStatistics(Map<String, Object> map);

    CardrecordInfo selectCardrecordInfoByUserIdAndBuildingId(@Param("userId") String userId, @Param("buildingId") String buildingId);

    int addPunchWay(CardrecordInfo cardrecordInfo);

    int addPunchBuilding(CardrecordInfo cardrecordInfo);

    List<Map<String,Object>> getPunchDataStatistics(Map<String,Object> map);
}